package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.StoreMapper;
import com.shunbo.convenient.service.StoreService;
import com.shunbo.convenient.vo.Store;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class StoreServiceImpl implements StoreService{

    @Resource
    private StoreMapper storeMapper;

    @Override
    public Integer save(Store obj) {
        return storeMapper.save(obj);
    }

    @Override
    public Integer update(Store obj) {
        return storeMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return storeMapper.delete(obj);
    }

    @Override
    public Store findById(String obj) {
        return storeMapper.findById(obj);
    }

    @Override
    public List<Store> findAll(Store obj) {
        return storeMapper.findAll(obj);
    }
}
